﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;
using Abp.Domain.Entities.Auditing;

namespace FwProject.ShoppingMall.BrandInfo
{
    /// <summary>
    /// 品牌管理
    /// </summary>
    [Table("Brand")]
    public class Brand : FullAuditedEntity<Guid>
    {
        public const int StringLength = 200;

        public const string TempFileUrlPrefix = FwConsts.TempFileUrlPrefix + "brand/";
        public const string SaveFileUrlPrefix = FwConsts.SaveFileUrlPrefix + "brand/";

        /// <summary>
        /// 品牌名称
        /// </summary>
        [Required]
        [StringLength(StringLength)]
        public string BrandName { get; set; }
        /// <summary>
        /// 所属层级
        /// </summary>
        [Required]
        public LeveTypeEnum Levetype { get; set; } = LeveTypeEnum.一级分类;
        /// <summary>
        /// 品牌介绍
        /// </summary>
        [StringLength(500)]
        public string NoteContent { get; set; }
        /// <summary>
        /// 分类图片
        /// </summary>
        public string Piclogo { get; set; }
        /// <summary>
        /// 排序
        /// </summary>
        [Required]
        public int Orders { get; set; }
    }
    public enum LeveTypeEnum
    {
        [Display(Name = "一级分类")]
        一级分类=0,
        [Display(Name = "二级分类")]
        二级分类 =1
    }
}
